projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c704066
)
(unexec): Add cast to result of `sbrk'.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 17 Feb 1994 03:32:02 +0000
(
03:32
+0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 17 Feb 1994 03:32:02 +0000
(
03:32
+0000)
src/unexmips.c
patch
|
blob
|
history
diff --git
a/src/unexmips.c
b/src/unexmips.c
index 8dffa695a5bd530cf8ea3c7b31f8407a4e37e35e..a88235a464e3ab9eb107d946c2716c8725ea3992 100644
(file)
--- a/
src/unexmips.c
+++ b/
src/unexmips.c
@@
-173,7
+173,8
@@
unexec (new_name, a_name, data_start, bss_start, entry_address)
text_section->s_scnptr = 0;
pagesize = getpagesize ();
- brk = (sbrk (0) + pagesize - 1) & (-pagesize);
+ /* Casting to int avoids compiler error on NEWS-OS 5.0.2. */
+ brk = (((int) (sbrk (0))) + pagesize - 1) & (-pagesize);
hdr.aout.dsize = brk - DATA_START;
hdr.aout.bsize = 0;
if (entry_address == 0)